home *** CD-ROM | disk | FTP | other *** search
/ ring.yamanashi.ac.jp/pub/pc/freem/action/ / action.zip / tekkyuu.zip / tekkyuu / tekkyuu.swf / scripts / frame_17 / PlaceObject2_99_tekkyuu_34 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-02-20  |  2KB  |  68 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.att == 0)
  3.    {
  4.       x1 = (_root.hx - 16 > _X) * 12 - (_root.hx + 16 < _X) * 12;
  5.       _X = _X + x1;
  6.       y1 = (- (x1 != 0)) * y2 * 2;
  7.       y2 = y2 == 0;
  8.       _Y = _root.hy + 24 + y1;
  9.    }
  10.    if(_root.att == 1)
  11.    {
  12.       r += _root.att1;
  13.       r -= (r == 16) * 16;
  14.       r += (r == 0) * 16;
  15.       r2 = r1 * r;
  16.       x1 = _root.att1 * 12;
  17.       _X = _root.hx + 32 * Math.cos(r2) - x1;
  18.       _Y = _root.hy + 20 * Math.sin(r2);
  19.       _Y = _Y - 32;
  20.       _root.pow += (_root.pow < 100) * 2;
  21.    }
  22.    if(_root.att > 1)
  23.    {
  24.       _root.att += 1;
  25.       x1 = 10 * _root.att1 * _root.att;
  26.       _root.iryoku = _root.buki + _root.pow / 20;
  27.       _root.iryoku += iryoku2;
  28.       if(_root.pow == 100)
  29.       {
  30.          iryoku2 = _root.buki * 3;
  31.          if(_root.buki == 1)
  32.          {
  33.             this.gotoAndPlay(3);
  34.             at1 = 12;
  35.          }
  36.          if(_root.buki == 2)
  37.          {
  38.             x1 += x1;
  39.             _root.dush = x1 / 2;
  40.             this.gotoAndPlay(15);
  41.             at1 = 14;
  42.          }
  43.          if(_root.buki == 3)
  44.          {
  45.             x1 = - x1;
  46.             _root.dush1 = 12;
  47.             this.gotoAndPlay(27);
  48.             at1 = 14;
  49.          }
  50.          if(_root.buki == 4)
  51.          {
  52.             this.gotoAndPlay(39);
  53.             at1 = 16;
  54.          }
  55.       }
  56.       at = 6 + at1;
  57.       _X = _root.hx + x1;
  58.       _Y = _Y + (_Y < _root.hy + 24) * 8;
  59.       if(_root.att > at)
  60.       {
  61.          _root.att = 0;
  62.       }
  63.       _root.pow = 0;
  64.       _root.iryoku2 = 0;
  65.       at1 = 0;
  66.    }
  67. }
  68.